package com.lwj.springboot.service;

import com.lwj.springboot.entity.User;
import com.lwj.springboot.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by LiWeijie on 2019/1/23.
 */
@Service
public class UserService {


    @Autowired
    private UserMapper userMapper;

    public List<User> listAll(User user) {
        return userMapper.listAll(user);
    }

    public void add(User user){
        userMapper.add(user);
    }
}
